//
//  YXProgressView.h
//  BrokenLine
//
//  Created by Rookie_YX on 16/10/19.
//  Copyright © 2016年 Rookie_YX. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YXProgressViewDelegate

- (void)CircularProgressEnd;

@end
@interface YXProgressView : UIView
{
  CGFloat startAngle;
  CGFloat endAngle;
  int     totalTime;
  
  UIFont *textFont;
  UIColor *textColor;
  NSMutableParagraphStyle *textStyle;
  
  NSTimer *m_timer;
  bool b_timerRunning;
}
@property(nonatomic, assign) id<YXProgressViewDelegate> delegate;
@property(nonatomic)CGFloat time_left;

- (void)setTotalSecondTime:(CGFloat)time;
- (void)setTotalMinuteTime:(CGFloat)time;

- (void)startTimer;
- (void)stopTimer;
- (void)pauseTimer;
@end
